<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.sun.xml.internal.fastinfoset.Encoder"%>
<%@ taglib prefix="s" uri="/struts-tags"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>北京天山--我的质量反馈单</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="javascript" src="/js/common/jquery-1.4.2.min.js"></script> 
<link href="/usercenter/css/usercenter.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="/usercenter/js/usercenter.js"></script>

</head>
  
<body>
<div class="main">
	<div class="maintable">
	    <table class="tblist" border="1" bordercolor="#e7e7e7" >
		  	<tr>
			  	<td colspan="6" class="maintitle" >
					<div class="maintitleimg"></div>
					<div class="maintitle_a">我的质量反馈单列表</div>
			  	</td>
      	  	</tr>							 
		    <tr height="30">
			    <td colspan="6">
			    	<div style="float:left; width:20%;" class="title" >产品名称</div>
			    	<div style="float:left; width:20%;" class="title" >联系人</div>
			    	<div style="float:left; width:20%;" class="title" >产品批号</div>
			    	<div style="float:left; width:20%;" class="title" >回复截止日期</div>
			    	<div style="float:left; width:10%;" class="title" >状态</div>
			    	<div style="float:left; width:10%;" class="title" >操作</div>
			    </td>
		    </tr>
		    <s:iterator value="sflist" id="sflistval" >
		  	<tr height="30" >
			    <td width="20%" align="center" >${sflistval.productName }</td>
			    <td width="20%" align="center" >${sflistval.contactPeople }</td>
			     <td width="20%" align="center" >${sflistval.productBatch }</td>
			    <td width="20%" align="center" ><s:if test="#sflistval.def9==1"><font color="#FF0000"> <s:date name="#sflistval.replyDeadline" format="yyyy-MM-dd"/></font></s:if><s:else><s:date name="#sflistval.replyDeadline" format="yyyy-MM-dd"/></s:else> </td>
			    <td width="10%" align="center" ><s:if test="#sflistval.status == 0">等待回复</s:if><s:else >已回复</s:else></td>
			    <td width="10%" align="center" >
			    <s:if test="#sflistval.def9 !=1 && #sflistval.status==0">
			       <a href="/usercenter/editfeedback.do?feedbackid=${sflistval.tsFeedbackid }" >回复</a>
			    </s:if>
			    <s:else>
			     <a href="/usercenter/editfeedback.do?feedbackid=${sflistval.tsFeedbackid }&view=load" >查看</a>
			    </s:else>
			    	
			    </td>
	 	 	</tr>	
	 	 	</s:iterator>  			  
        </table>
	</div>
</div>
 <script type="text/javascript">
   $(document).ready(function(){
			var msg = "${message}";
			  if(msg == "success"){
				 showMessage("操作成功！");
			  }else if (msg== "error"){
				  showMessage("操作失败！");
			  }
			});
   </script>
</body>
</html>
